package algorithmTopics.designPatterns.factoryPattern;

/**
 * 彩色工厂
 *
 * @author 86155
 * @date 2025/07/20
 */
public class ColorFactory extends AbstractFactory{
    @Override
    public Shape getShape(String shape) {
        return null;
    }

    @Override
    public Color getColor(String color) {
        if (color.equalsIgnoreCase("blue")) {
            return new Blue();
        }
        return null;
    }
}
